﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace RIABlog.Web.Models
{
    /// <summary>
    /// Базовый класс для поста и комментария
    /// </summary>
    [KnownType(typeof(BlogPost))]
    [KnownType(typeof(Comment))]
    public abstract class BlogActivity : BaseEntity
    {
        [Display(Order = 2, Name = "BlogPostText", ResourceType = typeof(FieldDisplayNames))]
        public string Text { get; set; }

        [Display(AutoGenerateField = false)]
        public DateTime TimePosted { get; set; }
    }
}